package com.hooya.fa.eu.biz.controller;

import com.hooya.fa.eu.biz.service.YearningOrderService;
import com.hooya.integrated.common.core.util.R;
import com.hooya.integrated.common.security.annotation.Inner;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description 临时放置yearning
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2024/6/19
 * @Version 1.0.0
 */
@RestController
@RequiredArgsConstructor
@Tag(name = "yearning")
@RequestMapping("/third")
public class YearningOrderController {

    private final YearningOrderService yearningOrderService;

    @Inner(value = false)
    @GetMapping("/order")
    public R<List<String>> getOrderWorkIds() {
        return R.ok(yearningOrderService.getOrderWorkIds());
    }
}
